{{>header}}
<main>
    <form action="/edit">
        {{>search}}
    </form>
    test:
    {{{page}}}
    <table class="table">
        <thead>
        <tr>
            <th>事件</th>
            <th>备注</th>
            <th width="200">创建时间</th>
            <th width="200">过期时间</th>
            <th width="50">状态</th>
            <th width="200">编辑</th>
        </tr>
        </thead>
        <tbody>
        {{#each notes}}
            <tr data-id="{{this._id}}">
                <td>{{this.note}}</td>
                <td>{{this.desc}}</td>
                <td>{{this.createAtLocalString}}</td>
                <td>{{this.expirationLocalString}}</td>
                <td>{{this.statusString}}</td>
                <td>{{#each this.actions}}&nbsp;<a href="/edit/{{this.action}}?id={{../_id}}">{{this.txt}}</a>&nbsp;{{/each}}</td>
            </tr>
        {{/each}}
        </tbody>
    </table>
</main>